package application.easyui.datagrid.demo.dao;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import application.easyui.datagrid.demo.model.Application;

public interface ApplicationDao {
	
	public Integer insert(Application application);
	
	public boolean delete(Integer id);
	
	
	public boolean modify(@Param("id") Integer id,@Param("name") String name,@Param("nation") String nation,@Param("address") String address,@Param("nat") String nat,@Param("provinces") String provinces,@Param("height") BigDecimal height,@Param("wide") BigDecimal wide,@Param("marriage") String marriage,@Param("age") Integer age,@Param("type") String type,@Param("position") String position,@Param("year") Integer year,@Param("poName") String poName,@Param("poType") String poType,@Param("poWork") String poWork,@Param("balance") double balance,@Param("province") String province,@Param("city") String city,@Param("county") String county,@Param("town") String town,@Param("onselfWork") String onselfWork,@Param("school") String school,@Param("education") String education,@Param("graduate") String graduate,@Param("major") String major,@Param("majors") String majors,@Param("English") String English,@Param("Chinese") String Chinese,@Param("Cantonese") String Cantonese,@Param("introduce") String introduce);
	
	
	public List<Application> query(@Param("name") String name,@Param("page") Integer page,@Param("rows") Integer rows);
	
	public int count(String name);

}
